package com.ndp.fb.creative.fetchdata.util;

/**
 * Created by evan.wan on 2015/5/21.
 */
public class SQLUtil {
    public SQLUtil() {
    }

    public static String appendPlaceholder(int number) {
        StringBuilder sql = new StringBuilder();

        for(int i = 0; i < number; ++i) {
            if(i + 1 < number) {
                sql.append("?,");
            } else {
                sql.append("?");
            }
        }

        return sql.toString();
    }
}
